package com.itrip.service;

import com.itrip.document.Hotel;
import com.itrip.dto.HotelDetail;
import com.itrip.pojo.ItripHotelOrder;
import com.itrip.pojo.ItripHotelTempStore;
import org.apache.solr.client.solrj.SolrServerException;

import java.io.IOException;
import java.util.List;

public interface HotelService {
    List<Hotel> getHotel(String keyWord, int i, Integer pageSize) throws IOException, SolrServerException;

    int getHotelNum(String keyWord) throws IOException, SolrServerException;

    List<HotelDetail> getHotelDetail(Integer id);

    void clear();

    int getRestRoom(Integer hotelId, Integer roomId);

    int save(ItripHotelOrder itripHotelOrder);

    int saveRecord(ItripHotelTempStore itripHotelTempStore);
}
